package com.happy_lab_management.demo.common.labType.conrtoller;


import com.happy_lab_management.demo.common.labType.service.LabTypeService;
import com.happy_lab_management.entity.LabType;
import com.happy_lab_management.entity.Semester;
import com.happy_lab_management.result.Result;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
@RequestMapping("/common/labType")
public class LabTypeController {


    @Autowired
    private LabTypeService labTypeService;
    @RequestMapping("/list")
    public Result<List<LabType>> list(){
        List<LabType> labType = labTypeService.list();
        return Result.success(labType);
    }

}
